timer

Purpose

Timer is a special component that is invisible. It fires one or more org.zkoss.zk.ui.event.Event after a specified delay. Notice that the timer won't fire any event until it is attached to a page.

Examples

<z:window>
    <z:label id="now"/>
    <z:timer id="timer" delay="1000" repeats="true" onTimer="now.setValue(new Date().toString())"/>
</z:window>

Description

Attributes

ZK Official Reference

Component Reference

Show timer Component Reference

Java API

Show timer Java API